package com.example.commons.response;

import com.alibaba.fastjson.JSONObject;

/**
 * Author:汪彬彬
 * date:2024/11/5 13:02
 */
public class RestResultUtil extends ResponseResult {

    public static ResponseResult success(Object data) {
        ResponseResult result = new ResponseResult(SUCCESS, "操作成功", data);
        return result;
    }
    public static ResponseResult error(String msg) {
        ResponseResult result = new ResponseResult(ERROR, msg, null);
        return result;
    }
}